<?php
    function __autoload($class_name)
	{
		include_once('../classes/'.strtolower($class_name).'.php');
	}
    
    $MaLoaiSanPhamCap2 = $_POST['MaLoaiSanPhamCap2'];
    
    $loaisanphamc2 = new loaisanphamc2bs();
    $loaisanphamc2->MaLoaiSanPhamCap2 = $MaLoaiSanPhamCap2;
    
    if($loaisanphamc2->delete())
        echo "yes";
    else
        echo "no";
?>